﻿// Copyright (c) Inossem. All rights reserved.
// Licensed under the LGPL-3.0 license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DWF.Studio.ScriptEngine
{
    /// <summary>
    /// 脚本引擎加载器接口
    /// </summary>
    public interface IScriptEngineLoader
    {
        /// <summary>
        /// 加载引擎
        /// </summary>
        /// <param name="engineId"></param>
        /// <returns></returns>
        IScriptEngine Load(string engineId);

        /// <summary>
        /// 加载引擎
        /// </summary>
        /// <param name="resolutionPaths"></param>
        /// <returns></returns>
        IScriptEngine Load(string[] resolutionPaths, ETargetPlatform platform);

        /// <summary>
        /// 加载引擎
        /// </summary>
        /// <param name="resolutionPaths"></param>
        /// <param name="assemblyNames"></param>
        /// <returns></returns>
        IScriptEngine Load(string[] resolutionPaths, string[] assemblyNames, ETargetPlatform platform);

        /// <summary>
        /// 加载引擎
        /// </summary>
        /// <param name="resolutionPaths"></param>
        /// <param name="assemblyNames"></param>
        /// <param name="param"></param>
        /// <returns></returns>
        IScriptEngine Load(string[] resolutionPaths, string[] assemblyNames, string param, ETargetPlatform platform);

        IScriptEngine Load(string[] resolutionPaths, string[] assemblyNames, Dictionary<string, string> projectProperties, string param, ETargetPlatform platform);

        /// <summary>
        /// 卸载引擎
        /// </summary>
        void Unload();
    }
}
